package com.ruoyi.swap.realtime.lastesttrade.mapper;

import java.util.List;
import com.ruoyi.swap.realtime.lastesttrade.domain.SwapLastesttradeRealtimeData;
import com.ruoyi.swap.realtime.lastesttrade.domain.VO.SwapLastesttradeRealtimeDataVO;
import org.apache.ibatis.annotations.Param;

/**
 * 实时成交Mapper接口
 * 
 * @author saumell
 * @date 2024-08-05
 */
public interface SwapLastesttradeRealtimeDataMapper 
{
    /**
     * 查询实时成交
     * 
     * @param id 实时成交主键
     * @return 实时成交
     */
    public SwapLastesttradeRealtimeDataVO selectSwapLastesttradeRealtimeDataById(Integer id);

    /**
     * 查询实时成交列表
     * 
     * @param swapLastesttradeRealtimeData 实时成交
     * @return 实时成交集合
     */
    public List<SwapLastesttradeRealtimeDataVO> selectSwapLastesttradeRealtimeDataList(SwapLastesttradeRealtimeDataVO swapLastesttradeRealtimeData);

    /**
     * 新增实时成交
     * 
     * @param swapLastesttradeRealtimeData 实时成交
     * @return 结果
     */
    public int insertSwapLastesttradeRealtimeData(SwapLastesttradeRealtimeData swapLastesttradeRealtimeData);

    /**
     * 修改实时成交
     * 
     * @param swapLastesttradeRealtimeData 实时成交
     * @return 结果
     */
    public int updateSwapLastesttradeRealtimeData(SwapLastesttradeRealtimeData swapLastesttradeRealtimeData);

    /**
     * 删除实时成交
     * 
     * @param id 实时成交主键
     * @return 结果
     */
    public int deleteSwapLastesttradeRealtimeDataById(Integer id);

    /**
     * 批量删除实时成交
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSwapLastesttradeRealtimeDataByIds(Integer[] ids);

    List<SwapLastesttradeRealtimeDataVO> selectSwapAllData();


    Integer queryCurryNumber(@Param("currencyPair")String currencyPair);
}
